<template>
  <div id="basicLayout">
    <a-layout style="min-height: 100vh">
      <a-layout-header class="header">
        <GlobalHeader />
      </a-layout-header>
      <a-layout-content class="content">
        <router-view />
      </a-layout-content>
      <a-layout-footer class="footer">
        <a href="https://gitee.com/623233529" target="_blank">我的码云</a>
      </a-layout-footer>
    </a-layout>
  </div>
</template>

<script lang="ts">
import { defineComponent } from "vue";
import GlobalHeader from "@/components/GlobalHeader.vue";

export default defineComponent({
  name: "BasicLayout",
  components: { GlobalHeader },
});
</script>

<style scoped>
#basicLayout {
  margin: 0 auto;
}

#basicLayout .header {
  box-shadow: #eee 0 0 10px;
}

#basicLayout .content {
  background: linear-gradient(to bottom, skyblue, yellow, skyblue);
  padding: 20px;
}

#basicLayout .footer {
  background: #000000;
  padding: 16px;
  position: sticky;
  bottom: 0;
  left: 0;
  right: 0;

  a {
    color: #ffffff;
    text-decoration: none;
  }
}
</style>
